package com.recharge.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.recharge.core.entity.WithdrawEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author reagan
 * @since 2020-08-19
 */
@Mapper
public interface WithdrawMapper extends BaseMapper<WithdrawEntity> {

    @Select("SELECT COUNT(1) FROM business_withdraw WHERE merchant_id = #{merchantId} AND `status` = #{status};")
    int selectCount(String merchantId, int status);
}
